import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../pages/Home/index'
import Alert from '../pages/Alert/index'
import Area from '../pages/Area/index'
import Contradiction from '../pages/Contradiction/index'
import Hong from '../pages/Hong/index'
import Login from '../pages/Login/index'
import Made from '../pages/Made/index'
import People from '../pages/People/index'
import Position from '../pages/Position/index'
import Temple from '../pages/Temple/index'
import TempleDetails from '../pages/Temple/templedetails'
import Cardetails from '../components/Cardetails/'
import Housedetails from '../components/Housedetails/'
import Peopledetails from '../components/Peopledetails/'
import Video from '../pages/Video/index'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: Login
  },
  {
    path: '/temple/templedetails/housedetails',
    name: 'housedetails',
    component: Housedetails
  },
  {
    path: '/temple/templedetails/peopledetails',
    name: 'peopledetails',
    component: Peopledetails
  },
  {
    path: '/temple/templedetails/cardetails',
    name: 'cardetails',
    component: Cardetails
  },
  {
    path: '/temple/templedetails',
    name: 'templedetails',
    component: TempleDetails
  },
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path: '/alert',
    name: 'alert',
    component: Alert
  },
  {
    path: '/area',
    name: 'area',
    component: Area
  },
  {
    path: '/contradiction',
    name: 'contradiction',
    component: Contradiction
  },
  {
    path: '/hong',
    name: 'hong',
    component: Hong
  },
  {
    path: '/made',
    name: 'made',
    component: Made
  },
  {
    path: '/people',
    name: 'people',
    component: People
  },
  {
    path: '/position',
    name: 'position',
    component: Position
  },
  {
    path: '/temple',
    name: 'temple',
    component: Temple
  },
  {
    path: '/video',
    name: 'video',
    component: Video
  },
  // {
  //   path: '/about',
  //   name: 'About',
  //   component: () => import('../views/About.vue')
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
